import loggin


@task
def ftppush_task(transfer_id=None, transfer_xml=None):

    if transfer_id != None:
	logging.basicConfig(filename=transfer.id, format='[%(asctime)s]:%(levelname)s:: ->  %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.DEBUG)
    else:
	#
	# Parametro id no valido
	# Finalizar la tarea

    logging.info("Start transfer id: " + str(transfer_id))
    logging.debug("Transfer XML: " + transer_xml)

    try:
	trans = Transfer(transfer_xml)
	
    except TransferXmlError as error:
	logging.error(error)
	#
	# Finalizar la tarea
	#
	
    